package com.jtny.nytb.datafilling.dto;

import com.jtny.component.entity.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

@ApiModel("能源价格填报类对象")
public class DatafillingEnergypriceFillDTO extends BaseDTO implements Serializable {
    @ApiModelProperty("用电种类")
    private String systemGrade;
    @ApiModelProperty("功率因数")
    private String powerFactor;
    @ApiModelProperty("增加值")
    private String addValue;

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof DatafillingEnergypriceFillDTO)) {
            return false;
        } else {
            DatafillingEnergypriceFillDTO other = (DatafillingEnergypriceFillDTO)o;
            if (!other.canEqual(this)) {
                return false;
            } else if (!super.equals(o)) {
                return false;
            } else {
                label49: {
                    Object this$systemGrade = this.getSystemGrade();
                    Object other$systemGrade = other.getSystemGrade();
                    if (this$systemGrade == null) {
                        if (other$systemGrade == null) {
                            break label49;
                        }
                    } else if (this$systemGrade.equals(other$systemGrade)) {
                        break label49;
                    }

                    return false;
                }

                Object this$powerFactor = this.getPowerFactor();
                Object other$powerFactor = other.getPowerFactor();
                if (this$powerFactor == null) {
                    if (other$powerFactor != null) {
                        return false;
                    }
                } else if (!this$powerFactor.equals(other$powerFactor)) {
                    return false;
                }

                Object this$addValue = this.getAddValue();
                Object other$addValue = other.getAddValue();
                if (this$addValue == null) {
                    if (other$addValue != null) {
                        return false;
                    }
                } else if (!this$addValue.equals(other$addValue)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof DatafillingEnergypriceFillDTO;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = super.hashCode();
        Object $systemGrade = this.getSystemGrade();
        result = result * 59 + ($systemGrade == null ? 43 : $systemGrade.hashCode());
        Object $powerFactor = this.getPowerFactor();
        result = result * 59 + ($powerFactor == null ? 43 : $powerFactor.hashCode());
        Object $addValue = this.getAddValue();
        result = result * 59 + ($addValue == null ? 43 : $addValue.hashCode());
        return result;
    }

    public DatafillingEnergypriceFillDTO() {
    }

    public String getSystemGrade() {
        return this.systemGrade;
    }

    public String getPowerFactor() {
        return this.powerFactor;
    }

    public String getAddValue() {
        return this.addValue;
    }

    public void setSystemGrade(String systemGrade) {
        this.systemGrade = systemGrade;
    }

    public void setPowerFactor(String powerFactor) {
        this.powerFactor = powerFactor;
    }

    public void setAddValue(String addValue) {
        this.addValue = addValue;
    }

    public String toString() {
        return "DatafillingEnergypriceFillDTO(systemGrade=" + this.getSystemGrade() + ", powerFactor=" + this.getPowerFactor() + ", addValue=" + this.getAddValue() + ")";
    }
}
